﻿using Newtonsoft.Json;

namespace Missbot.Model.MsgInfos
{
    public class MessagingInfo : RootInfo
    {
        [JsonProperty("body")]
        public ChannelBody_Messaging Body { get; set; }
    }

    public class ChannelBody_Messaging : ChannelBody
    {
        [JsonProperty("body")]
        public MessagingBody Body { get; set; }
    }

    public class MessagingBody
    {
        [JsonProperty("id")]
        public string ID { get; set; }

        [JsonProperty("text")]
        public string Text { get; set; }
        
        [JsonProperty("user")]
        public InstanceUser User { get; set; }
        
        [JsonProperty("group")]
        public InstanceGroup Group { get; set; }
        
        [JsonProperty("file")]
        public InstanceFile File { get; set; }
    }
}